<?php
namespace app\common\model\app;
use app\common\model\member\MemberAccountModel;
use app\common\model\member\MemberModel;
use app\common\model\setting\SettingStorePlatformModel;
use think\Model;

class MerchantBlacklistModel extends Model
{
    // 表名
    protected $name = 'merchant_blacklist';
    // 表主键
    protected $pk = 'id';
    // 关联买手
    public function member()
    {
        return $this->hasOne(MemberModel::class, 'member_id', 'member_id');
    }
    // 关联平台
    public function platform()
    {
        return $this->hasOne(SettingStorePlatformModel::class, 'id', 'store_platform_id');
    }
    // 关联接单账号
    public function account()
    {
        return $this->hasOne(MemberAccountModel::class, 'id', 'member_account_id');
    }
}
